package com.seven.springboot.controller.yang;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import io.swagger.annotations.Api;

//@RestController
@Controller
@RequestMapping("yang")
@Api("首页相关操作")
public class Index2Controller {

	private static final Logger logger = LoggerFactory.getLogger(Index2Controller.class);
    
    @RequestMapping(value = "/index")
    public ModelAndView toIndex(ModelAndView mv) {
    	mv.setViewName("yang/index");
    	return mv;
    }
    
//    @RequestMapping()
//    public ModelAndView greeting(ModelAndView mv) {
//    	mv.setViewName("/yang/index");
//    	mv.addObject("title","欢迎使用thymeleaf");
//    	return mv;
//    }
	
}
